﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">


    <HierarchicalDataTemplate 
            x:Key="SprintIterationTemplate" 
           ItemsSource="{Binding Path=SprintChildren}"
            >
        <Border BorderThickness="1" BorderBrush="LightGray" CornerRadius="2" Margin="1">
            <Border.Style>
                <Style>
                    <Setter Property="Border.Background" >
                        <Setter.Value>
                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                <GradientStop Color="White" Offset="0.0" />
                                <GradientStop Color="#eeeeee" Offset="0.5" />
                                <GradientStop Color="#cccccc" Offset="1.0" />
                            </LinearGradientBrush>
                        </Setter.Value>
                    </Setter>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding Path=IsSelected, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type TreeViewItem}}}" Value="True">
                            <Setter Property="Border.Background" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </Border.Style>

            <Grid TextBlock.FontFamily="Corbel" TextBlock.FontSize="10" >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>

                <Grid Grid.Row="0">
                    <TextBlock TextWrapping="NoWrap"  FontSize="14" FontWeight="800" Padding="4" Text="{Binding ShortPath}" />
                    <StackPanel HorizontalAlignment="Right" VerticalAlignment="Center" Orientation="Vertical" Margin="0 0 10 0">
                        <TextBlock TextWrapping="NoWrap" Text="{Binding TotalPoints,StringFormat=\{0\} points total}" Visibility="{Binding Path=PointsVisibility}"/>
                        <TextBlock TextWrapping="NoWrap" Text="{Binding TotalHours,StringFormat=\{0\} hours total}" Visibility="{Binding Path=HoursVisibility}"/>
                        <TextBlock TextWrapping="NoWrap" Text="{Binding TotalRemain,StringFormat=\{0\} remain total}" Visibility="{Binding Path=RemainVisibility}"/>
                    </StackPanel>
                </Grid>
            </Grid>
        </Border>
    </HierarchicalDataTemplate>





</ResourceDictionary>